<template>
    <div class="login01">
        <div class="tc">
            <div class="username">用户名</div>
            <div class="username_inpbox"><input type="text" v-model="form.username"></div>
            <div class="password">密码</div>
            <div class="password_inpbox">
                <input type="password" v-model="form.password">
                 <img class="img" src="../assets/icon/view.png" alt="" >
            </div>
            <div class="logbtn" @click="login">登录</div>
            <div class="caoz">
                <div class="jzmm"><input type="checkbox" v-model="form.showjz"><span class="jzmm_title">记住密码</span></div>
                <div class="wjmm">忘记密码？</div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: "HomeView",
    data() {
        return {
            form:{
                username:'',
                password:'',
                showjz:false,
            }
        };
    },
    mounted() {
        console.log(
            `%c 登录01 %c 202410231124  %c`,
            'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px;  color: #fff',
            'background:#41b883 ; padding: 1px; border-radius: 0 3px 3px 0;  color: #fff',
            'background:transparent',
            23
        )
    },
    methods: {
          login(){
            console.log(this.form);
            
          }
    },
};
</script>


<style scoped>
.login01 {
    width: 100vw;
    height: 100vh;
    background: url('../assets/img/登录01@1x.png') no-repeat 0 0/100% 100%;

}

.tc {
    position: fixed;
    left: 59.79vw;
    top: 23.79vh;
    width: 30.31vw;
    height: 42.68vh;

    border-radius: 10px;
    background: linear-gradient(180deg, rgba(107, 78, 152, 0.71) 0%, rgba(91, 67, 128, 0.25) 100%);
    backdrop-filter: blur(92px);

    /*  */
    .username {
        height: 2.59vh;
        margin-top: 7.91vh;
        margin-left: 4.93vw;
        font-size: 1.04vw;
        font-weight: normal;
        line-height: 2.59vh;
        color: #FDCB44;
    }

    .username_inpbox {
        margin-left: 4.93vw;
        margin-top: 0.64vh;

        input {
            width: 20vw;
            height: 1.85vh;
            padding: 0.41vw 0.62vw;
            outline: none;
            /* 取消轮廓 */
            border: none;
            /* 取消边框 */
        }
    }

    .password {
        margin-top: 1.85vh;
        margin-left: 4.93vw;
        font-size: 1.04vw;
        font-weight: normal;
        line-height: 2.59vh;
        color: #FDCB44;
    }

    .password_inpbox {
        margin-left: 4.93vw;
        margin-top: 0.64vh;

        input {
            width: 20vw;
            height: 1.85vh;
            padding: 0.41vw 0.62vw;
            outline: none;
            /* 取消轮廓 */
            border: none;
            /* 取消边框 */
        }
       position: relative;
       .img{
        position: absolute;
        top: 0.92vh;
        right: 4.68vw;
        width: 0.83vw;
        height: 0.83vw;
       }
    }

    .logbtn {
        margin-left: 4.93vw;
        margin-top: 3.7vh;
        width: 3.54vw;
        height: 3.7vh;
        /* 自动布局 */
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0.41vw 1.04vw;
        gap: 10px;
        z-index: 0;
        border-radius: 0.2vw;
        opacity: 1;
        background: #FDCB44;
    }

    .caoz {
        margin-left: 4.93vw;
        margin-top: 1.7vh;
        width: 20.44vw;
        height: 2.96vh;
        line-height: 2.96vh;
        /* 自动布局 */
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0px;
        z-index: 1;

        .jzmm {
            input {
                /* margin-top: 1vh; */
                width: 0.72vw;
                height: 0.72vw;
            }

            .jzmm_title {
                /* margin-top: 1vh; */
                margin-left: 0.41vw;
                font-size: 0.72vw;
                font-weight: normal;
                line-height: 2.22vh;
                /* align-items: center; */
                color: #FFFFFF;
            }
        }

        .wjmm {
            width: 4.16vw;
            height: 2.96vh;
            display: flex;
            /* gap: 10px; */
            /* z-index: 1; */
            border-radius: 4px;
            /* font-family: HarmonyOS Sans SC; */
            font-size: 0.72vw;
            font-weight: normal;
            line-height: 2.22vh;
            /* text-align: center; */
            /* letter-spacing: 0px; */
            color: #FDCB44;
        }
    }
}
</style>